What is discrimination and is it always bad?

What is discrimination and is it always bad?